using System;
using System.Collections.Generic;
using System.Text;

namespace XMLStuffs
{
    public class Post
    {

        // Variables
        public int ID;
        public Boolean HasImage;
        public String Text;
        public readonly MetaData MetaData;

        // Constructor
        public Post(int _ID, Boolean _HasImage, String _Text, MetaData _MetaData)
        {

            //..
            ID = _ID;
            HasImage = _HasImage;
            Text = _Text;
            MetaData = _MetaData;

        }
        public Post()
        { 

            // ..
            MetaData = new MetaData();

        }

        // Add meta data item
        public void AddMetaItem(String _Name, String _Value)
        {

            // ..
            MetaData.AddItem(_Name, _Value);

        }

    }
}
